package cn.itcast.c3p0;

 
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {

	@Test
public void test(){
		
		ApplicationContext context=new ClassPathXmlApplicationContext("beanc3p0.xml");
		UserService service=(UserService) context.getBean("userService");
		service.add();
	}
}
